<!--
 * @Author: 码上talk|RC
 * @Date: 2021-07-03 15:34:12
 * @LastEditTime: 2021-08-11 14:11:55
 * @LastEditors: 码上talk|RC
 * @Description: 
 * @FilePath: /ma-portal/components/search/index.vue
 * @微信:  13680065830
 * @邮箱:  3189482282@qq.com
 * @oops: Just do what I think it is right
-->
<template>
  <van-search
    class="a-search"
    use-left-icon-slot
    :disabled="disabled"
    :placeholder="placeholder"
    @search.native="$emit('search',$event)"
    @change.native="$emit('change',$event)"
  >
    <template v-slot:left-icon>
      <image class="search-icon" :src="'icon/search.png'|prefixOssUrl" />
    </template>
  </van-search>
</template>

<script>
export default {
  components: {},
  mixins: [],
  props: {
    placeholder: String,
    disabled: Boolean
  },
  data () {
    return {}
  },
  methods: {
  }
}
</script>

<style lang="less">
.a-search {
  .search-icon {
    margin-top: 11rpx;
    margin-right: 32rpx;
    width: 30rpx;
    height: 30rpx;
  }
  .van-field__input {
  }
}
</style>